<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Insert title here</title>
	<link rel="stylesheet" href="./css/xiugai.css">
	<script type="text/javascript" src="./js/jquery-3.2.1.min.js"></script>
	<script type="text/javascript" src="./js/xiugai.js"></script>
</head>

<script >
 
        var dor=[
        ["A1-101","A1-102","A1-103","A1-104","A1-105","A1-106","A1-107","A1-108","A1-109","A1-110"],["A2-101","A2-102","A2-103","A2-104","A2-105","A2-106","A2-107","A2-108","A2-109","A2-110"],["A3-101","A3-102","A3-103","A3-104","A3-105","A3-106","A3-107","A3-108","A3-109","A3-110"],["A4-101","A4-102","A4-103","A4-104","A4-105","A4-106","A4-107","A4-108","A4-109","A4-110"],["A5-101","A5-102","A5-103","A5-104","A5-105","A5-106","A5-107","A5-108","A5-109","A5-110"],["A6-101","A6-102","A6-103","A6-104","A6-105","A6-106","A6-107","A6-108","A6-109","A6-110"],["A7-101","A7-102","A7-103","A7-104","A7-105","A7-106","A7-107","A7-108","A7-109","A7-110"],["A8-101","A8-102","A8-103","A8-104","A8-105","A8-106","A8-107","A8-108","A8-109","A8-110"],["A9-101","A9-102","A9-103","A9-104","A9-105","A9-106","A9-107","A9-108","A9-109","A9-110"],["A10-101","A10-102","A10-103","A10-104","A10-105","A10-106","A10-107","A10-108","A10-109","A10-110"],["A11-101","A11-102","A11-103","A11-104","A11-105","A11-106","A11-107","A11-108","A11-109","A11-110"],["A12-101","A12-102","A12-103","A12-104","A12-105","A12-106","A12-107","A12-108","A12-109","A12-110"],["A13-101","A13-102","A13-103","A13-104","A13-105","A13-106","A13-107","A13-108","A13-109","A13-110"]];
    
    
    function getdor(){
   
    var sltBuild = document.getElementById("build") ;        
    var sltDor = document.getElementById("dor") ;      
        
    var buildDor = dor[sltBuild.selectedIndex - 1];         
    sltDor.length = 1 ;
       
    for ( i = 0 ; i < buildDor .length ; i++ ) {
           sltDor[i + 1] = new Option(buildDor[i], buildDor[i]) ;
    }
    
    }
    </script>
<body >
<form action="changeDormTeacher.do" method="post"> 
 
	 <div class="contrainer">
		 <div class="wrap">
			 <div class="header">
				 <p>学生寝室调整</p>
			 </div>
			 <div class="content" style="height:380px;">
					 <div class="jmima">
						 <div class="tip">学号</div>
						 <input type="text" class="omima" name="no">
					 </div>
					 <div class="xmima">
						 <div class="x1">
							 <select id="build" name="B" onchange="getdor()">
								 <option value="-1">选择楼栋</option>
								 <option value="A1">A1</option>
								 <option value="A2">A2</option>
								 <option value="A3">A3</option>
								 <option value="A4">A4</option>
								 <option value="A5">A5</option>
								 <option value="A6">A6</option>
								 <option value="A7">A7</option>
								 <option value="A8">A8</option>
								 <option value="A9">A9</option>
								 <option value="A10">A10</option>
								 <option value="A11">A11</option>
								 <option value="A12">A12</option>
								 <option value="A13">A13</option>
							 </select>
						 </div>
						 <div class="x2">
							 <select id="dor" name="D">
								 <option value="-1">选择寝室</option>
							 </select>
						 </div>
						 <input type="submit" class="xig" value="入住登记">
					 </div>
			 </div>
		 </div>
	 </div>

   </form>
</body>
</html>
